package org.hit.burkun.umls;

import java.util.Collection;
import java.util.Map;
import java.util.Set;

import org.hit.burkun.db.DBHelper;
import org.hit.burkun.entities.Entity;

public abstract class BaseQuery extends BaseMapper {

	private MapidsUmlsDump mdbh;

	public BaseQuery(DBHelper umlsdbh, String tbName) {
		super(umlsdbh, tbName);
		this.mdbh = new MapidsUmlsDump(umlsdbh, tbName);
	}

	protected Map<String, Set<String>> getUnmapped(Collection<String> data,
			Entity.TYPE type) {
		// 保存到数据库, 并返回结果
		return mdbh.saveUnMappedToDb(type, data);
	}

}
